var electronInstaller = require('electron-winstaller');

resultPromise = electronInstaller.createWindowsInstaller({
    appDirectory: 'OutApp/network-guard-win32-x64', //打包文件的路径
    outputDirectory: 'OutApp', //输出路径
    authors: 'xzp', // 作者名称
    description: '断网守护软件。',
    exe: 'network-guard.exe', //在appDirectory寻找exe的名字
    setupIcon: './icon/icon-128.ico',
    setupExe: "network-guard-win-setup.exe",
    noMsi: true
  });

resultPromise.then(() => console.log("success!"), (e) => console.log(`something wrong: ${e.message}`));